"""
获取label中的内容
"""
from tkinter import ttk

from easygui.boxes.fileopen_box import tk


def get_label_value(label):
    return label["text"]


def get_textBox_value(textBox):
    return textBox.get()

# def createLabel(window, labelText, labelname, row, column, columnspan):
#     labelname = tk.Label(window, text=labelText)
#     if columnspan == 0:
#         labelname.grid(row=row, column=column)
#     else:
#         labelname.grid(row=row, column=column, columnspan=columnspan)
#     return labelname
#
#
# def createTextBox(window, textBoxName, row, column, columnspan):
#     textBoxName = tk.Entry(window)
#     if columnspan == 0:
#         textBoxName.grid(row=row, column=column)
#     else:
#         textBoxName.grid(row=row, column=column, columnspan=columnspan)
#     return textBoxName
